<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ include file="../template/taglib.jsp" %>

<jsp:include page="../template/header.jsp" />

<jsp:include page="../template/adminmenu.jsp" />

<%-- content template --%>
<jsp:include page="../template/contentheader.jsp" />
<%-- put content here --%>

 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<fmt:setBundle basename="admin" />
<%--<c:set var="t" value="true" /> --%>

<c:set var="t" value="true" />
	

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Edit All </title>
</head>
<body>

<h1><fmt:message key="lable.EditEntitlement" /></h1>
<form action="/LeaveApplicationProcessingSystem/LeaveEntitlement" method="post">
<table cellpadding="4" cellspacing="2" border="0">
<c:if test="${param['insert']==t}">
	<tr>
		<td>
			<fmt:message key="label.user.id" />
		</td>
		<td>
			<input type="text" name="id" value="${param['id']}"
					size=15 maxlength=20 >
			<input type="hidden" name="type" value="insert" />
		</td>
	</tr>
	<tr>
		<td>
			<fmt:message key="label.user.name" />
		</td>
		<td>
			<input type="text" name="name" value="${param['name']}" size=15 maxlength=20>
		</td>
		</tr>
		<tr>
		<td>
			<fmt:message key="lable.user.MedicalLeave" />
		</td>
		<td>
			<input type="text" name="medicalLeave" value="${param['medicalLeave']}" size=15 maxlength=20>
		</td>
	</tr>
	<tr>
		<td>
			<fmt:message key="lable.user.AnnualLeave" />
		</td>
		<td>
			<input type="text" name="annualLeave" value="${param['annualLeave']}" size=15 maxlength=20>
		</td>
	</tr>
	<tr>
		<td>
			<fmt:message key="lable.user.Compensation" />
		</td>
		<td>
			<input type="text" name="compensationLeave" value="${param['compensationLeave']}" size=15 maxlength=20>
		</td>
	</tr>
	<tr>
	<td><input type="submit" value="submit"><input type ="reset" value="reset"> </td>
	</tr>
	</c:if>
	<c:if test="${param['update']==t}">
	<tr>
		<td>
			<fmt:message key="label.user.id" />
		</td>
		<td>
			

				<input type="text" name="id" value="${param['id']}"
					size=15 maxlength=20 >
				
				<input type="hidden" name="type" value="update" /> 
				<input type="hidden" name="id" value="${ param['id']}" />
			
		</td>
	</tr>
	<tr>
		<td>
			<fmt:message key="label.user.name" />
		</td>
		<td>
			<input type="text" name="name" value="${param['name']}" size=15 maxlength=20>
			<input type="hidden" name="type" value="update" /> 
					<input type="hidden" name="name" value="${ param['name']}" />
			
		</td>
		</tr>
		<tr>
		<td>
			<fmt:message key="lable.user.MedicalLeave" />
		</td>
		<td>
			<input type="text" name="medicalLeave" value="${param['medicalLeave']}" size=15 maxlength=20>
			<input type="hidden" name="type" value="update" /> 
					<input type="hidden" name="medicalLeave" value="${ param['medicalLeave']}" />
		</td>
	</tr>
	<tr>
		<td>
			<fmt:message key="lable.user.AnnualLeave" />
		</td>
		<td>
			<input type="text" name="annualLeave" value="${param['annualLeave']}" size=15 maxlength=20>
			<input type="hidden" name="type" value="update" /> 
					<input type="hidden" name="annualLeave" value="${ param['annualLeave']}" />
		</td>
	</tr>
	<tr>
		<td>
			<fmt:message key="lable.user.Compensation" />
		</td>
		<td>
			<input type="text" name="compensationLeave" value="${param['compensationLeave']}" size=15 maxlength=20>
			<input type="hidden" name="type" value="update" /> 
					<input type="hidden" name="compensationLeave" value="${ param['compensationLeave']}" />
		</td>
	</tr>
	<tr>
	<td><input type="submit" value="submit"><input type ="reset" value="reset"> </td>
	</tr>
	
	</c:if>
	
	
		</table>
</form>
</body>
</html>

<%-- end of content template --%>

<jsp:include page="../template/footer.jsp" />